#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int g_val=100;
int g_unval;

int main(int argc,char* argv[],char* env[])
{
    int j=0;
    while(1)
    {
         printf("######################\n");
         printf("%d\n",j);
         printf("\n");
         printf("main:%p\n",main);
         printf("g_val:%p\n",&g_val);
         printf("g_unval:%p\n",&g_unval);

         int *p=(int*)malloc(10);
         printf("heap_addr:%p\n",p);
         printf("stack_addr:%p\n",&p);

         int i=0;
         for(i=0;i<argc;i++)
         {
             printf("argv[%d]:%p\n",i,argv[i]);
         }
         
         
         for(i=0;env[i];i++)
         {
             printf("env[%d]:%p\n",i,env[i]);
         }
         free(p);
         printf("\n");
         j++;
         sleep(1);
    }

    return 0;
}
